class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count += 1

# 调试
# xm = Student('小明')
# print(xm.count)
# xb = Student('小白')
# print(xm.name)
# print(xb.count)
# print(Student.count)